package com.mage.dao;

import com.mage.bean.Chongzhi;
import com.mage.bean.PageBean;

import java.sql.SQLException;
import java.util.List;

public interface ChongzhiDao {

    int PAGE_SIZE = 5; //分页显示多少条记录
    void insert(Chongzhi chongzhi) throws SQLException;

    PageBean findChongzhiByPages(int currentPage) throws SQLException;

    List<Chongzhi> findChongzhiByPage(int currentPage) throws SQLException;

    int findCount() throws SQLException;

    PageBean todayStatistics(int currentPage) throws SQLException;

    List<Chongzhi> todayStatisticsPages(int currentPage) throws SQLException;

    PageBean monthStatistics(int currentPage) throws SQLException;

    List<Chongzhi> monthStatisticsPages(int currentPage) throws SQLException;

    int findCountByToday() throws SQLException;

    int findCountByMonth() throws SQLException;

    PageBean findXiaofeiByPages(int currentPage, int userid) throws SQLException;

    List<Chongzhi> findXiaofeiByPage(int currentPage,int userid) throws SQLException;

    int findXiaofeiCount(int userid) throws SQLException;

    void delete(int id) throws SQLException;
}
